package cn.udrm.water.base.v1.frontpages.baseconfig;

import org.springframework.stereotype.Component;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestParam;

import cn.udrm.water.base.v1.commons.annotations.Router;

/**
 * 首页地图配置
 * @author liukang
 * @date 2019年3月18日
 */
@Component
@Router(value="router/baseconfig/indexMapConfig")
public class IndexMapConfigRouter {

	@Router(value="list")
	public String list() {
		return "baseconfig/indexMapConfig/list";
	}
	
	@Router(value="add")
	public String add(@RequestParam(value="id", required=false) String id, ModelMap modelMap) {
		modelMap.addAttribute("id", id);
		return "baseconfig/indexMapConfig/add";
	}
	
	@Router(value="detail")
	public String detail() {
		return "baseconfig/indexMapConfig/detail";
	}
}
